public class Test {
    public static void main(String[] args) {
        Solution solution = new Solution();

        TreeNode Tree1 = new TreeNode(1,new TreeNode(2),null);
        TreeNode Tree2 = new TreeNode(1,null,new TreeNode(2));
        System.out.println(solution.isSameTree(Tree1,Tree2));

        TreeNode Tree3 = new TreeNode(1,new TreeNode(2),new TreeNode(3));
        TreeNode Tree4 = new TreeNode(1,new TreeNode(2),new TreeNode(3));
        System.out.println(solution.isSameTree(Tree3,Tree4));

        TreeNode Tree5 = new TreeNode(1,new TreeNode(2),new TreeNode(1));
        TreeNode Tree6 = new TreeNode(1,new TreeNode(1),new TreeNode(2));
        System.out.println(solution.isSameTree(Tree5,Tree6));
    }
}